package com.itzhigui;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.context.ConfigurableApplicationContext;
import org.springframework.scheduling.annotation.EnableAsync;
import org.springframework.scheduling.annotation.EnableScheduling;

/**
 * 主启动类启动，会自动创建web容器，并基础的spring和springmvc的配置已经帮你配置好了
 *
 * @author java1412
 * @since 2024-04-11 16:34:16
 */
@SpringBootApplication  // 开启springboot项目的应用
@MapperScan(value = "com.itzhigui.mapper")    // 配置扫描mapper层接口
@EnableScheduling   // 开启定时任务
@EnableAsync        // 开启异步任务
public class Project01Application {
    public static void main(String[] args) {
        ConfigurableApplicationContext ctx = SpringApplication.run(Project01Application.class, args);
//        for (String name : ctx.getBeanDefinitionNames()) {
//            System.out.println(name);
//        }
    }
}
